public class HomeWork06_04{
    public static void main(String[] args){
        Diamond diamond = new Diamond();
        diamond.printDiamond(5, 2);
    }
}

class Diamond{
    void printDiamond(int line, int multi){
        int tag = multi;
        for(int i = tag, j = (line/2)*2, count = 0; count < line; i += tag * 2, j -= tag, count++){
            for(int m = 0; m < j; m++){
                System.out.print(" ");
            }
            for(int n = 0; n < i; n++){
                System.out.print("*");
            }
            if(i == line * multi){
                tag = -tag;
            }
            System.out.println();
        }
    }
}